#ifndef _ERRORLOG_H_
#define _ERRORLOG_H_

void Error ( const char* error, ... )
{
	va_list argptr;
	char text[1024];
	char text2[1024];

	va_start ( argptr, error );
	vsprintf ( text, error, argptr );
	va_end ( argptr );

	sprintf ( text2, "%s\n", text );
	MessageBoxA ( NULL, text2, "Error", MB_OK );
	exit(1);
} 

#endif